package bdcin.repositorios;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class ConfiguracaoBD {
	
	private static Configuration configuracao;
	
	private static SessionFactory factory; 
	
	public static void configurarBD() {
		configuracao = new Configuration();
		configuracao.configure();
		factory = configuracao.buildSessionFactory();
	}
	
	public static SessionFactory getFactory() {
		return factory;
	}

}
